package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.system.domain.CasesNumberProcessadmin;
import com.ruoyi.system.domain.CasesNumberProcessadminIns;
import com.ruoyi.system.domain.CasesNumberProcessadminRe;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CasesNumberProcesscivilMapper;
import com.ruoyi.system.domain.CasesNumberProcesscivil;
import com.ruoyi.system.service.ICasesNumberProcesscivilService;

/**
 * 民事公益诉讼流程情况Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-24
 */
@Service
public class CasesNumberProcesscivilServiceImpl implements ICasesNumberProcesscivilService 
{
    @Autowired
    private CasesNumberProcesscivilMapper casesNumberProcesscivilMapper;

    /**
     * 查询民事公益诉讼流程情况
     * 
     * @param id 民事公益诉讼流程情况主键
     * @return 民事公益诉讼流程情况
     */
    @Override
    public CasesNumberProcesscivil selectCasesNumberProcesscivilById(Long id)
    {
        return casesNumberProcesscivilMapper.selectCasesNumberProcesscivilById(id);
    }

    /**
     * 查询民事公益诉讼流程情况列表
     *
     * @param casesNumberProcesscivil 民事公益诉讼流程情况
     * @return 民事公益诉讼流程情况
     */
    @Override
    public List<CasesNumberProcesscivil> selectCasesNumberProcesscivilList(CasesNumberProcesscivil casesNumberProcesscivil)
    {
        return casesNumberProcesscivilMapper.selectCasesNumberProcesscivilList(casesNumberProcesscivil);
    }

    /**
     * 查询民事公益诉讼流程情况列表
     *
     * @param casesNumberProcessadmin 民事公益诉讼流程情况
     * @return 民事公益诉讼流程情况
     */
    @Override
    public List<CasesNumberProcessadminRe> selectCasesNumberRe(CasesNumberProcessadmin casesNumberProcessadmin)
    {
        return casesNumberProcesscivilMapper.selectCasesNumberRe(casesNumberProcessadmin);
    }

    @Override
    public List<CasesNumberProcessadminIns> selectCasesNumberIns(CasesNumberProcessadmin casesNumberProcessadmin)
    {
        return casesNumberProcesscivilMapper.selectCasesNumberIns(casesNumberProcessadmin);
    }

    /**
     * 新增民事公益诉讼流程情况
     * 
     * @param casesNumberProcesscivil 民事公益诉讼流程情况
     * @return 结果
     */
    @Override
    public int insertCasesNumberProcesscivil(CasesNumberProcesscivil casesNumberProcesscivil)
    {
        casesNumberProcesscivil.setCreateTime(DateUtils.getNowDate());
        return casesNumberProcesscivilMapper.insertCasesNumberProcesscivil(casesNumberProcesscivil);
    }

    /**
     * 修改民事公益诉讼流程情况
     * 
     * @param casesNumberProcesscivil 民事公益诉讼流程情况
     * @return 结果
     */
    @Override
    public int updateCasesNumberProcesscivil(CasesNumberProcesscivil casesNumberProcesscivil)
    {
        casesNumberProcesscivil.setUpdateTime(DateUtils.getNowDate());
        return casesNumberProcesscivilMapper.updateCasesNumberProcesscivil(casesNumberProcesscivil);
    }

    /**
     * 批量删除民事公益诉讼流程情况
     * 
     * @param ids 需要删除的民事公益诉讼流程情况主键
     * @return 结果
     */
    @Override
    public int deleteCasesNumberProcesscivilByIds(Long[] ids)
    {
        return casesNumberProcesscivilMapper.deleteCasesNumberProcesscivilByIds(ids);
    }

    /**
     * 删除民事公益诉讼流程情况信息
     * 
     * @param id 民事公益诉讼流程情况主键
     * @return 结果
     */
    @Override
    public int deleteCasesNumberProcesscivilById(Long id)
    {
        return casesNumberProcesscivilMapper.deleteCasesNumberProcesscivilById(id);
    }
}
